package cn.hairui.fastms.constant;

/**
 * <p>
 * <h2>日志相关定义</h2>
 *  <ol>请添加功能描述</ol>
 * <h2>修改历史</h2>
 *  <ol>如有修改，请添加修改历史</ol>
 * </p>
 *
 * @author lihairui
 * @date 2020/11/11 16:54
 * @copyright 李海瑞
 */
public class GlobalConstant {
    /**
     * 系统日志名称
     */
    public static final String LOG_SYSTEM = "System";
    /**
     * 缓存日志名称
     */
    public static final String LOG_CACHE = "Cache";
    /**
     * 操作日志名称
     */
    public static final String LOG_OPERATION = "Operation";
    /**
     * 全局用户登录session名称
     */
    public static final String GLOBAL_SESSION_NAME = "userinfo";
    public static final String GLOBAL_OPENDAY = "OPENDAY";

    /**
     * 本机登录的ip地址
     */
    public static final String LOCAL_IP_ADDRESS_STR = "0:0:0:0:0:0:0:1";
    public static final String LOCAL_IP_ADDRESS_STR_FORMAT = "127.0.0.1";
    /**
     * 默认每页展示数据量
     */
    public static final int DEFAULT_PAGE_SIZE = 10;
    /**
     * 最大父菜单编号 -1
     */
    public static final String PARENT_RESC_ID_MAX = "-1";

    /**
     * 操作标识符 - edit
     */
    public static final String OPERATION_EDIT = "edit";
    /**
     * 操作标识符 - remove
     */
    public static final String OPERATION_REMOVE = "remove";
    /**
     * 操作标识符 - add
     */
    public static final String OPERATION_ADD = "add";

    public static final String MSG_CDE_S0000 = "S0000";
    public static final String MSG_CDE_S0001 = "S0001";
    public static final String MSG_CDE_S0003 = "S0003";
    public static final String MSG_CDE_S0004 = "S0004";
    public static final String MSG_CDE_S0005 = "S0005";
    public static final String MSG_CDE_S0006 = "S0006";

    /*
    public static final String RET_SUCCESS = "{\n" +
            "  \"statusCode\": 200,\n" +
            "  \"title\": \"操作提示\",\n" +
            "  \"message\": \"恭喜你，操作成功！当statusCode为200时，返回成功提示信息。\"\n" +
            "}";
    public static final String RET_FAILED = "{\n" +
            "  \"statusCode\": 500,\n" +
            "  \"title\": \"操作提示\",\n" +
            "  \"message\": \"对不起，操作失败！当statusCode为500时，返回失败提示信息。\"\n" +
            "}";
    */


}
